package com.woniu.demo.utils;

import com.woniu.demo.Vo.ResultVo;

/**
 * created by woniu201
 * created in 2018/7/8
 */
public class ResultVoUtil {

    public static ResultVo succ(Object obj){
        ResultVo resultVo = new ResultVo();
        resultVo.setCode(0);
        resultVo.setMsg("成功");
        resultVo.setData(obj);
        return resultVo;
    }

    public static ResultVo fail(Integer code, String msg){
        ResultVo resultVo = new ResultVo();
        resultVo.setCode(code);
        resultVo.setMsg(msg);
        return resultVo;
    }
}
